import {get ,post } from "./http"


//统一格式
// export const reqlogin = (params) => post("/login",params,true)

/*菜单管理*/
export const reqmenulist = params => get("/api/menulist", params);
export const reqmenuadd = params => post("/api/menuadd", params);
export const reqmenuinfo = params => get("/api/menuinfo", params);
export const reqmenuedit = params => post("/api/menuedit", params);
export const reqmenudelete = params => post("/api/menudelete", params);

/*角色管理*/
export const reqrolelist = () => get("/api/rolelist");
export const reqroleadd = params => post("/api/roleadd", params);
export const reqroleinfo = params => get("/api/roleinfo", params);
export const reqroleedit = params => post("/api/roleedit", params);
export const reqroledelete = params => post("/api/roledelete", params);

/* 管理员管理 */
export const requseradd = params => post("/api/useradd",params);
export const requsercount = () => get("/api/usercount");
export const requserlist = params => get("/api/userlist",params);
export const requserinfo = params => get("/api/userinfo",params);
export const requseredit = params => post("/api/useredit",params);
export const requserdelete = params => post("/api/userdelete",params);
export const requserlogin = params => post("/api/userlogin",params);


/* 商品分类管理 */
export const reqcateadd = params => post("/api/cateadd",params,true);
export const reqcatelist = params => get("/api/catelist",params);
export const reqcateinfo = params => get("/api/cateinfo",params);
export const reqcateedit = params => post("/api/cateedit",params,true);
export const reqcatedelete = params => post("/api/catedelete",params);


/* 会员管理 */
export const reqmemberlist = () => get("/api/memberlist");
export const reqmemberinfo = params => get("/api/memberinfo",params);
export const reqmemberedit = params => post("/api/memberedit",params);


/* 商品规格 */
export const reqspecsadd = params => post("/api/specsadd",params);
export const reqspecscount = () => get("/api/specscount");
export const reqspecslist = params => get("/api/specslist",params);
export const reqspecsinfo = params => get("/api/specsinfo",params);
export const reqspecsedit = params => post("/api/specsedit",params);
export const reqspecsdelete = params => post("/api/specsdelete",params);

/* 轮播图管理 */
export const reqbanneradd = params => post("/api/banneradd",params,true);
export const reqbannerlist = params => get("/api/bannerlist",params);
export const reqbannerinfo = params => get("/api/bannerinfo",params);
export const reqbanneredit = params => post("/api/banneredit",params,true);
export const reqbannerdelete = params => post("/api/bannerdelete",params);

/* 商品管理 */
export const reqgoodsadd = params => post("/api/goodsadd",params,true);
export const reqgoodscount = () => get("/api/goodscount");
export const reqgoodslist = params => get("/api/goodslist",params);
export const reqgoodsinfo = params => get("/api/goodsinfo",params);
export const reqgoodsedit = params => post("/api/goodsedit",params,true);
export const reqgoodsdelete = params => post("/api/goodsdelete",params);

/* 秒杀活动 */
export const reqseckadd = params => post("/api/seckadd",params);
export const reqsecklist = params => get("/api/secklist",params);
export const reqseckinfo = params => get("/api/seckinfo",params);
export const reqseckedit = params => post("/api/seckedit",params);
export const reqseckdelete = params => post("/api/seckdelete",params);

